useFixture(default)

def test():
	from Modules import commonBits
	java_recorded_version = '1.6.0_03'

	if window('Protocol Buffer Editor'):
		select('FileChooser',  commonBits.sampleDir() + 'protoFieldTest.bin')
		click('Edit1')
		rightclick('Table1', 'Line,2')
		select_menu('Edit Record')
		assert_p('Table', 'Content', '[[f01, 1, , 20000, 20000], [f02, 2, , 20000, 20000], [f03, 3, , 20000, 20000], [f04, 4, , 20000, 20000], [f05, 5, , 20000, 20000], [f06, 6, , 200000000, 200000000], [f07, 7, , 200000000, 200000000], [f08, 8, , 200000000, 200000000], [f09, 9, , 200000000, 200000000], [f10, 10, , 200000000, 200000000], [f11, 11, , 20000.0, 20000.0], [f12, 12, , 2.0E8, 2.0E8], [f13, 13, , false, false], [f14, 14, , , ], [f15, 15, , 200000000, 200000000], [f16, 16, , , ], [f17, 17, , SALE, SALE], [f18, 18, , , ], [f19, 19, , 0000000002, 0000000002], [f20, 20, , , ]]')
		assert_p('TextArea', 'Text', '20000	20000	20000	20000	20000	200000000	200000000	200000000	200000000	200000000	20000.0	2.0E8	false		200000000		SALE		0000000002')

		click('Right')
		assert_p('TextArea', 'Text', '30000	30000	30000	30000	30000	300000000	300000000	300000000	300000000	300000000	30000.0	3.0E8	true	false	300000000	300000000 optional	RETURN	RETURN	0000000003	0000000003')
		click('Right')
		assert_p('TextArea', 'Text', '40000	40000	40000	40000	40000	400000000	400000000	400000000	400000000	400000000	40000.0	4.0E8	false	true	400000000	400000000 optional	OTHER	OTHER	0000000004	0000000004')
		assert_p('Table', 'Content', '[[f01, 1, , 40000, 40000], [f02, 2, , 40000, 40000], [f03, 3, , 40000, 40000], [f04, 4, , 40000, 40000], [f05, 5, , 40000, 40000], [f06, 6, , 400000000, 400000000], [f07, 7, , 400000000, 400000000], [f08, 8, , 400000000, 400000000], [f09, 9, , 400000000, 400000000], [f10, 10, , 400000000, 400000000], [f11, 11, , 40000.0, 40000.0], [f12, 12, , 4.0E8, 4.0E8], [f13, 13, , false, false], [f14, 14, , true, true], [f15, 15, , 400000000, 400000000], [f16, 16, , 400000000 optional, 400000000 optional], [f17, 17, , OTHER, OTHER], [f18, 18, , OTHER, OTHER], [f19, 19, , 0000000004, 0000000004], [f20, 20, , 0000000004, 0000000004]]')
		click('Right')
		assert_p('TextArea', 'Text', '50000	50000	50000	50000	50000	500000000	500000000	500000000	500000000	500000000	50000.0	5.0E8	false	true	500000000	500000000 optional	SALE	SALE	0000000005	0000000005')
		assert_p('Table', 'Content', '[[f01, 1, , 50000, 50000], [f02, 2, , 50000, 50000], [f03, 3, , 50000, 50000], [f04, 4, , 50000, 50000], [f05, 5, , 50000, 50000], [f06, 6, , 500000000, 500000000], [f07, 7, , 500000000, 500000000], [f08, 8, , 500000000, 500000000], [f09, 9, , 500000000, 500000000], [f10, 10, , 500000000, 500000000], [f11, 11, , 50000.0, 50000.0], [f12, 12, , 5.0E8, 5.0E8], [f13, 13, , false, false], [f14, 14, , true, true], [f15, 15, , 500000000, 500000000], [f16, 16, , 500000000 optional, 500000000 optional], [f17, 17, , SALE, SALE], [f18, 18, , SALE, SALE], [f19, 19, , 0000000005, 0000000005], [f20, 20, , 0000000005, 0000000005]]')
		click('Right')
		assert_p('TextArea', 'Text', '60000	60000	60000	60000	60000	600000000	600000000	600000000	600000000	600000000	60000.0	6.0E8	true		600000000		RETURN		0000000006')
		assert_p('Table', 'Content', '[[f01, 1, , 60000, 60000], [f02, 2, , 60000, 60000], [f03, 3, , 60000, 60000], [f04, 4, , 60000, 60000], [f05, 5, , 60000, 60000], [f06, 6, , 600000000, 600000000], [f07, 7, , 600000000, 600000000], [f08, 8, , 600000000, 600000000], [f09, 9, , 600000000, 600000000], [f10, 10, , 600000000, 600000000], [f11, 11, , 60000.0, 60000.0], [f12, 12, , 6.0E8, 6.0E8], [f13, 13, , true, true], [f14, 14, , , ], [f15, 15, , 600000000, 600000000], [f16, 16, , , ], [f17, 17, , RETURN, RETURN], [f18, 18, , , ], [f19, 19, , 0000000006, 0000000006], [f20, 20, , , ]]')
##		click('ScrollPane$ScrollBar3', 491, 5)
		click('Right')
		assert_p('TextArea', 'Text', '70000	70000	70000	70000	70000	700000000	700000000	700000000	700000000	700000000	70000.0	7.0E8	false	true	700000000	700000000 optional	OTHER	RETURN	0000000007	0000000007')
		assert_p('Table', 'Content', '[[f01, 1, , 70000, 70000], [f02, 2, , 70000, 70000], [f03, 3, , 70000, 70000], [f04, 4, , 70000, 70000], [f05, 5, , 70000, 70000], [f06, 6, , 700000000, 700000000], [f07, 7, , 700000000, 700000000], [f08, 8, , 700000000, 700000000], [f09, 9, , 700000000, 700000000], [f10, 10, , 700000000, 700000000], [f11, 11, , 70000.0, 70000.0], [f12, 12, , 7.0E8, 7.0E8], [f13, 13, , false, false], [f14, 14, , true, true], [f15, 15, , 700000000, 700000000], [f16, 16, , 700000000 optional, 700000000 optional], [f17, 17, , OTHER, OTHER], [f18, 18, , RETURN, RETURN], [f19, 19, , 0000000007, 0000000007], [f20, 20, , 0000000007, 0000000007]]')
		click('BasicInternalFrameTitlePane$NoFocusButton2')
	close()
